<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script
	src="/resources/admin/lagu/lib/formvalidator/jquery.validationEngine.js"></script>
<script
	src="/resources/admin/lagu/lib/formvalidator/jquery.validationEngine-en.js"></script>
<link rel="stylesheet"
	href="/resources/admin/lagu/lib/formvalidator/validationEngine.jquery.css"
	type="text/css" media="screen" />
<script type="text/javascript">
	$(document).ready(function() {
		$("#user-setup-form").validationEngine({
			promptPosition : "topLeft",
			onValidationComplete : function(form, status) {
				var name = $("#user-setup-form-name").attr("value");
				var email = $("#user-setup-form-email").attr("value");
				var password = $("#user-setup-form-password").attr("value");
				if (status == true) {
					LG.setup(name, email, $.md5(password), function(json) {
						if (json.success) {
							location.reload();
						} else {
							$("#user-login-form-email").validationEngine("showPrompt","系统错误","error");
						}
					});
				}
			}
		});
	});
</script>
<div style="position: fixed !important; top: 0; left: 0; height: 100%; width: 100%; z-index: 199999; background: #000; opacity: 0.6; filter: alpha(opacity = 60); font-size: 14px; line-height: 20px;">
</div>
<div class="dp33"
	style="width: 300px !important; position: absolute; top: 28%; left: 37%; z-index: 199999 !important;">
	<div class="formEl_b">
		<form id="user-setup-form" method="post" onsubmit="return false;">
			<fieldset style="padding: 12px 10px 20px 18px;">
				<legend> 安装 </legend>
				<div class="sepH_b">
					<label for="a_text_b2" class="lbl_a"> 昵称 </label> <input
						type="text" class="inpt_a  validate[required]"
						id="user-setup-form-name" name="name" style="width: 90%;">
				</div>
				<div class="sepH_b">
					<label for="a_text_b2" class="lbl_a"> Email </label> <input
						type="text" class="inpt_a  validate[required,custom[email]]"
						id="user-setup-form-email" name="email" style="width: 90%;">
				</div>
				<div class="sepH_b">
					<label for="a_password_b2" class="lbl_a"> 密码 </label> <input
						type="password" class="inpt_a  validate[required]"
						id="user-setup-form-password" name="password" style="width: 90%;">
				</div>
				<button class="btn btn_d sepV_a">
					<span>提交</span>
				</button>
			</fieldset>
		</form>
	</div>
</div>